package com.demo1;

/**
 * Created by Administrator on 2017/3/25.
 */
public class LuoJi {
    public static void main(String[] args) {
        int a = 5;
        int b = 3;
        boolean b1 = (a > 4) & (b < 4);
        boolean b2 = (a < 4) | (b > 4);
        boolean b3 = !(a > 4);
        System.out.println("使用与逻辑运算符的结果为" + b1);
        System.out.println("使用或逻辑运算符的结果为" + b2);
        System.out.println("使用非逻辑运算符的结果为" + b3);
    }
}
